css: Clip outset box-shadow to outside of box
authorAlexander Larsson <alexl@redhat.com>
Fri, 3 May 2013 10:50:18 +0000 (12:50 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 6 May 2013 14:20:03 +0000 (16:20 +0200)
commitc91e706e2bbba1f45895996638c7065def087d21
treeb36479879c42a816821a4db6125ff8202a25a505
parented1eddabf064769747e927a68f2dc59bd8241ebf
css: Clip outset box-shadow to outside of box

As per css3-background 7.2. Drop Shadows: the ‘box-shadow’ property:

  An outer box-shadow casts a shadow as if the border-box of the element
  were opaque. The shadow is drawn outside the border edge only: it
  is clipped inside the border-box of the element.

Also verified vs firefox behaviour.
gtk/gtkcssshadowvalue.c